package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.QuestionTag;
import cn.wolfcode.luowowo.common.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionTagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(QuestionTag record);

    QuestionTag selectByPrimaryKey(Long id);

    List<QuestionTag> selectAll();

    List<QuestionTag> selectForList(QueryObject qo);

    int updateByPrimaryKey(QuestionTag record);

    QuestionTag selectByName(String tagName);

    void insertRelation(@Param("tagId") Long tagId, @Param("quId") Long quId);

}